import React, { Component } from 'react'
import RouterLink from '../router/RouterLink';
import RouterView from '../router/RouterView';

export class Home extends Component {
  render() {
    const { routerConfig } = this.props;
    return (
      <div className='App'>
        <header>
          路由
        </header>
        <main>
          <RouterView routerConfig={ routerConfig }></RouterView>
        </main>
        <footer>
          <RouterLink routerConfig={ routerConfig }></RouterLink>
        </footer>
      </div>
    )
  }
}

export default Home